import { defineConfig } from 'drizzle-kit';
import dotenv from 'dotenv'

dotenv.config({ path: 'config/.env' })

export default defineConfig({
  dialect: 'mysql',
  out: './drizzle',
  schema: './src/db/schema',
  migrations: {
    table: 'my-migrations-table', // `__drizzle_migrations` by default
  },
  dbCredentials: {
    url: process.env.DATABASE_URL!,
  },
});
